package com.castle.fortress.admin.exchange.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import lombok.EqualsAndHashCode;
import com.castle.fortress.admin.core.entity.BaseEntity;
/**
 * 兑换券 实体类
 *
 * @author whc
 * @since 2022-12-06
 */
@Data
@TableName("exchange_voucher")
@EqualsAndHashCode(callSuper = true)
public class ExchangeVoucherEntity extends BaseEntity  {
	private static final long serialVersionUID = 1L;
	/**
	 * 兑换设置ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long exchangeId;
	/**
	 * 卡券名称
	*/
	private String name;
	/**
	 * 兑换开始时间
	*/
	private Date startTime;
	/**
	 * 兑换截至时间
	*/
	private Date endTime;

	/**
	 * 到期时间
	*/
	private Date expiredTime;
	/**
	 * 兑换编号
	*/
	private String no;
	/**
	 * 兑换券类型
	*/
	private Integer type;
	/**
	 * 是否绑定
	*/
	private Integer isBind;
	/**
	 * 会员id
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long memberId;

}
